﻿using System;
using System.Collections;
using ICSharpCode.Core;
using System.Drawing;
using System.Windows;

namespace Agnes.Core
{
    public class WorkbenchPadDoozer : IDoozer
    {
        public object BuildItem(object caller, Codon codon, System.Collections.ArrayList subItems)
        {
            return new WorkbenchPadDiscriptor(codon, caller);
        }

        public bool HandleConditions
        {
            get { return false; }
        }
    }

    /// <summary>
    /// 工作区面板描述器
    /// </summary>
    public sealed class WorkbenchPadDiscriptor
    {
        /// <summary>
        /// Codon
        /// </summary>
        public readonly Codon Codon;
        
        /// <summary>
        /// Owner
        /// </summary>
        public readonly object Owner;

        public WorkbenchPadDiscriptor(Codon codon, object owner)
        {
            Codon = codon;
            Owner = owner;
        }
    }
}
